package com.cn.domain;

import java.util.Date;

public class Order {
	private Integer oid;
	private String  ordername;//收货人
	private String  addr;//收货人的地址
	private String  phone;//收货人的电话号码
    private String  postcode;//邮政编码
	private Integer state;//1.未付款 2.订单已经付款 3.已经发货   4确认收货 
	private Date   ordertime;//下单的时间
	
	private float ordertotal;//该订单应付金额
	
	//与Customer的关系 多对一的关系
	private Customer customer;
	
	
	
	public Integer getOid() {
		return oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	public String getOrdername() {
		return ordername;
	}
	public void setOrdername(String ordername) {
		this.ordername = ordername;
	}
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public float getOrdertotal() {
		return ordertotal;
	}
	public void setOrdertotal(float ordertotal) {
		this.ordertotal = ordertotal;
	}
	public Date getOrdertime() {
		return ordertime;
	}
	public void setOrdertime(Date ordertime) {
		this.ordertime = ordertime;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}


	

}
